STEP 3: Let's add some commands to the event!

Just like a function, any command that is part of the event must be indented under the line that defines the event.

  • Have the dancer Flip Right Left in the left_key event. Make sure to indent with a green block ····.
  • Still inside the event, Wait 1 second.
  • Now have the dancer Flip Right Left to reverse the move.


To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)